package com.example.shiro.model;

import java.util.HashSet;
import java.util.Set;

public class Role {


    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getName() {
        return rname;
    }

    public void setName(String name) {
        this.rname = name;
    }

    public Set<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(Set<Permission> permissions) {
        this.permissions = permissions;
    }

    private Integer rid;
    private String rname;
    private Set<Permission> permissions = new HashSet<>();
}
